﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BlowerSimulatorShell
{
    public partial class BlowerSimulator : Form
    {
        PowerManager m_powerManager;

        public BlowerSimulator()
        {
            InitializeComponent();

            m_powerManager = new PowerManager();
        }

        private void button_power_Click(object sender, EventArgs e)
        {
            if (m_powerManager.TogglePower())
            {
                this.ledState.BackColor = Color.Red;
            }
            else
            {
                this.ledState.BackColor = Color.LightGray;
            }
        }
    }
}
